package top.jle.wx.proxy.domain.material;


import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

@Schema(title="图文信息")
@Getter
@Setter
public class Article {

    @Schema(title = "标题",requiredMode = Schema.RequiredMode.REQUIRED)
    private String title;

    @Schema(title = "图文消息的封面图片素材id",description = "必须是永久素材ID",requiredMode = Schema.RequiredMode.REQUIRED)
    private String thumb_media_id;

    @Schema(title = "作者")
    private String author;

    @Schema(title = "图文消息的摘要",description = "仅有单图文消息才有摘要，多图文此处为空。如果本字段为没有填写，则默认抓取正文前64个字。")
    private String digest;

    @Schema(title = "是否显示封面，0为false，即不显示，1为true，即显示",requiredMode = Schema.RequiredMode.REQUIRED)
    private int show_cover_pic = 1;

    @Schema(title = "图文消息的具体内容",description = "支持HTML标签，必须少于2万字符，小于1M，且此处会去除JS,涉及图片url必须来源 \"上传图文消息内的图片获取URL\"接口获取。外部图片url将被过滤。",requiredMode = Schema.RequiredMode.REQUIRED)
    private String content;

    @Schema(title = "图文消息的原文地址",description = "即点击“阅读原文”后的URL",requiredMode = Schema.RequiredMode.REQUIRED)
    private String content_source_url;

    @Schema(title="是否打开评论",description = "0不打开，1打开")
    private Integer need_open_comment;

    @Schema(title="是否粉丝才可评论",description = "0所有人可评论，1粉丝才可评论")
    private Integer only_fans_can_comment;
}
